home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
READLINE.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
43 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_ReadLine( nHandle, nLength ) --> cString
PARAMETERS:
nHandle : file handle of previously opened file
nLength : Maximum line length to read (default 1024)
SHORT:
Read a line of text from an ASCII file.
DESCRIPTION:
_ReadLine() reads lines of text from a previously opened DOS text file.
nLength specifies the maximum line length to read. If any line in the
file exceeds this length, the remaining characters are read in in the
next line.
NOTE:
See also _FEOF()
EXAMPLE:
#include "fileio.ch"
handle = fopen('INPUT.TXT,FO_READ)
while !_FEof(handle)
This_Line = _ReadLine(handle)
end
Result: Each line of the text file is read into the This_Line variable until
all lines have been read.
******************************************************************************/